package com.example.demo.api.ecom;

import com.github.lianjiatech.retrofit.spring.boot.annotation.RetrofitClient;
import retrofit2.http.GET;
import retrofit2.http.Query;

@RetrofitClient(baseUrl = "${ecom.product.base}")
public interface ProductApi {
    /**
     * <p> 配置: ecom.recommend.product.url (PropertiesUtil)
     * <p> 请求头: apikey
     *
     * @param code          产品编号   String.join(",", productNumber)
     * @param options       PRICE
     * @param contextString store + "|" + language
     * @return
     */
    @GET("v3/product/")
    Object getProductDetails(@Query("code") String code,@Query("options") String options, @Query("contextString")String contextString);

}
